<!DOCTYPE html>
<html>
<head>
    <title>发薪信息表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="form-group col-sm-2">
            <input type="text" class="form-control" v-model="q.key"
                   @keyup.enter="query" placeholder="请输入查询条件">
        </div>
        <a class="btn btn-default" @click="query">查询</a>
        <hr>
        <div class="grid-btn">
			<#if shiro.hasPermission("deptmanage:salaryinfo:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("deptmanage:salaryinfo:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("deptmanage:salaryinfo:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
            <form action="../../deptmanage/salaryinfo//templateDownload" method="post" style="display:inline-block;">
                <input type="submit" class="btn btn-primary" value="下载模版" />
            </form>
            <form action="../../deptmanage/salaryinfo/batchImport"  class="fupload" method="post" style="display:inline-block;" enctype="multipart/form-data">
                <input type="file" name="file" placeholder="请选择excel文件" style="border-radius: 5px; padding: 5px;border: 1px solid #2e6da4;display:inline-block;" required="required"/>
                <input type="submit" class="btn btn-primary" value="批量导入"  />
            </form>
            <form action="../../deptmanage/salaryinfo/export" method="post" style="display:inline-block;">
                <input type="submit" class="btn btn-primary" value="导出" />
            </form>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">员工序号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="salaryInfo.userseq" placeholder="员工序号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">当前税前工资
</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="salaryInfo.preTaxSalary" placeholder="当前税前工资
"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">当前税后工资
</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="salaryInfo.afterTaxSalary" placeholder="当前税后工资
"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">社保扣除（个人）金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="salaryInfo.socialInsuranceReducePersonMoney" placeholder="社保扣除（个人）金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">社保基数
</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="salaryInfo.socialInsuranceBase" placeholder="社保基数
"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">社保扣除（企业）金额
</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="salaryInfo.socialInsuranceReduceCompanyMoney" placeholder="社保扣除（企业）金额
"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">公积金缴存比例</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="salaryInfo.depositRatio" placeholder="公积金缴存比例"/>
                        </div>
                    </div>								                    <div class="form-group">
                        <div class="col-sm-2 control-label">公积金基数</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="salaryInfo.accumulationFundBase" placeholder="公积金基数"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">考勤天数
</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="salaryInfo.checkDay" placeholder="考勤天数
"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">每日薪资
</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="salaryInfo.salaryDay" placeholder="每日薪资
"/>
                        </div>
                    </div>
<!--											                    <div class="form-group">-->
<!--                        <div class="col-sm-2 control-label">创建日期</div>-->
<!--                        <div class="col-sm-10">-->
<!--                            <input type="text" class="form-control" v-model="salaryInfo.createDate" id="createDate" placeholder="创建日期"/>-->
<!--                        </div>-->
<!--                    </div>-->
<!--											                    <div class="form-group">-->
<!--                        <div class="col-sm-2 control-label">创建人</div>-->
<!--                        <div class="col-sm-10">-->
<!--                            <input type="text" class="form-control" v-model="salaryInfo.createUser" placeholder="创建人"/>-->
<!--                        </div>-->
<!--                    </div>-->
<!--											                    <div class="form-group">-->
<!--                        <div class="col-sm-2 control-label">修改日期</div>-->
<!--                        <div class="col-sm-10">-->
<!--                            <input type="text" class="form-control" v-model="salaryInfo.updateDate" id="updateDate" placeholder="修改日期"/>-->
<!--                        </div>-->
<!--                    </div>-->
<!--											                    <div class="form-group">-->
<!--                        <div class="col-sm-2 control-label">修改人</div>-->
<!--                        <div class="col-sm-10">-->
<!--                            <input type="text" class="form-control" v-model="salaryInfo.updateUser" placeholder="修改人"/>-->
<!--                        </div>-->
<!--                    </div>-->
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/deptmanage/salaryinfo.js?_${.now?long}"></script>
</body>
</html>